

const lang = localStorage.getItem('country');


// 获取当前单位
export const getCurrentUnit = () => {
  return [
    {
      name: lang == 'zh' ? '人民币' : 'рубль',
      symbol: '¥',
      code: 'CNY',
      nameSym: (lang == 'zh' ? '人民币' : 'рубль') + '-' + '¥',
      country: lang == 'zh' ? '中国' : 'Китай'
    },
    {
      name: lang == 'zh' ? '卢布' : 'рубль',
      symbol: '₽',
      code: 'RUB',
      nameSym: (lang == 'zh' ? '卢布' : 'рубль') + '-' + '₽',
      country: lang == 'zh' ? '俄罗斯' : 'Россия'
    },
    {
      name: lang == 'zh' ? '坚戈' : 'тенге',
      symbol: '₸',
      code: 'KZT',
      nameSym: (lang == 'zh' ? '坚戈' : 'тенге') + '-' + '₸',
      country: lang == 'zh' ? '哈萨克斯坦' : 'Казахстан'
    },
    {
      name: lang == 'zh' ? '白俄罗斯卢布' : 'Белорусский рубль',
      symbol: 'Br',
      code: 'BYN',
      nameSym: (lang == 'zh' ? '白俄罗斯卢布' : 'Белорусский рубль') + '-' + 'Br',
      country: lang == 'zh' ? '白俄罗斯' : 'Беларусь'
    },
    {
      name: lang == 'zh' ? '索姆' : 'сом',
      symbol: 'сом',
      code: 'KGS',
      nameSym: (lang == 'zh' ? '索姆' : 'сом') + '-' + 'сом',
      country: lang == 'zh' ? '吉尔吉斯斯坦' : 'Киргизия'
    },
    {
      name: lang == 'zh' ? '苏姆' : 'сўм',
      symbol: 'сўм',
      code: 'UZS',
      nameSym: (lang == 'zh' ? '苏姆' : 'сўм') + '-' + 'сўм',
      country: lang == 'zh' ? '乌兹别克斯坦' : 'Узбекистан'
    },
    {
      name: lang == 'zh' ? '马纳特' : 'Манат',
      symbol: 'Манат',
      code: 'TMT',
      nameSym: (lang == 'zh' ? '马纳特' : 'Манат') + '-' + 'Манат',
      country: lang == 'zh' ? '土库曼斯坦' : 'Туркменистан'
    },
    {
      name: lang == 'zh' ? '格里夫纳' : 'гривна',
      symbol: '₴',
      code: 'UAH',
      nameSym: (lang == 'zh' ? '格里夫纳' : 'гривна') + '-' + '₴',
      country: lang == 'zh' ? '乌克兰' : 'Украина'
    },
    {
      name: lang == 'zh' ? '索莫尼' : 'сомон',
      symbol: 'сомон',
      code: 'TJS',
      nameSym: (lang == 'zh' ? '索莫尼' : 'сомон') + '-' + 'сомон',
      country: lang == 'zh' ? '塔吉克斯坦' : 'Таджикистан'
    }
  ];
}

